Testing methodology and frameworks
See original GitHub issueLet’s talk about how we should be testing. It’s obvious we should be testing more, but we need some guidelines to help ensure that our tests are high quality and that contributors can easily see what they should be doing.
As such I think we should discuss which testing frameworks we should use and where we should use them.
Right now we use:
- Cypress for e2e, which means we use Mocha when writing those tests
- Mocha in
test-challenges.js
- Jest everywhere else (I think)
- Enzyme for challenge tests (the tests that run on user submitted code)
- React Testing Library for some component testing
- react-test-renderer for others
- redux-saga-test-plan for one Redux Saga
I think that covers it!
@freeCodeCamp/dev-team does anyone want to chime in with things we should or should not be doing?
Issue Analytics
- State:
- Created 3 years ago
- Comments:14 (14 by maintainers)
Top Results From Across the Web
Software Testing Methodologies
Software testing methodologies are the various strategies or approaches used to test an application to ensure it behaves and looks as expected.
Read more >Software Testing Methodologies: Learn QA Models
This tutorial includes, step by step instruction on how software methodology is effective in monitoring the software development process.
Read more >TESTING FRAMEWORKS
Modular testing framework. Modular approach. Reusable functions. Hierarchical Structure. Test data within the scripts limits reusability,. Test script is.
Read more >The Main Types of Software Testing Methodologies and ...
The main software testing methodologies are the Agile model, the Waterfall model, V-Model, the Incremental model, and XЗ. Each has advantages ...
Read more >What are Test Automation Frameworks and Types?
Automation Framework is not a single tool or process, but it is a collection of tools and processes working together to support automated...
Read more >Top Related Medium Post
No results found
Top Related StackOverflow Question
No results found
Troubleshoot Live Code
Lightrun enables developers to add logs, metrics and snapshots to live code - no restarts or redeploys required.
Start FreeTop Related Reddit Thread
No results found
Top Related Hackernoon Post
No results found
Top Related Tweet
No results found
Top Related Dev.to Post
No results found
Top Related Hashnode Post
No results found
Top GitHub Comments
A quick update on getting rid of redux. Although hooks and context could replace redux’s state management, we use redux actions for handling impure functions as well.
We could useEffect for some of those functions; however, we should consider sticking with a library to manage application side effects such as redux-sage.
The more obvious way forward would be to rewrite epics to sagas, rewrite class components to functions, and use redux hooks.
That should considerably clean up our code base a lot and make it more readable.
We could also briefly explain how we use redux and sagas in our guidelines so it would be more obvious to new contributors.
I should have replied here in the first place:
https://www.browserstack.com/open-source
It looks like they’re happy to support OS projects, so we should be able to work something out.