Closed Bug 1312177 Opened 8 years ago Closed 7 years ago

Automate stubs creation for reps tests

Categories

(DevTools :: Shared Components, defect, P2)

defect

Tracking

(Not tracked)

RESOLVED WONTFIX

People

(Reporter: nchevobbe, Assigned: nchevobbe)

References

Details

In the majority of the Reps tests, we directly pass a manually retrieved stub to the component. It is great because the tests are fasts. However, it means that if there are some changes on the backend, the stubs will be out of sync, which might lead to bugs that wouldn't be caught by the tests.
We should have a system to generate the stubs, like we do it in the new console, so there are always synced.
Maybe we could shared all or some of the logic of the console at some point.
Nemonitor.html project (XUL -> HTML) also needs tests for all introduced React components that render data coming from the backend (HTTP events & updates). It would be great if we can share the logic with the new Network panel too.

Honza
Yes, BTW there is already some form of network stub creation in the console, and there is a bug (Bug 319199) to improve it
See Also: → 319199
Reps were moved to Github, https://github.com/devtools-html/devtools-core/issues/446 was created to take care of this
Status: NEW → RESOLVED
Closed: 7 years ago
Resolution: --- → WONTFIX
Product: Firefox → DevTools
You need to log in before you can comment on or make changes to this bug.