question-mark
Stuck on an issue?

Lightrun Answers was designed to reduce the constant googling that comes with debugging 3rd party libraries. It collects links to all the places you might be looking at while hunting down a tough bug.

And, if you’re still stuck at the end, we’re happy to hop on a call to see how we can help out.

Testing methodology and frameworks

See original GitHub issue

Let’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:closed
  • Created 3 years ago
  • Comments:14 (14 by maintainers)

github_iconTop GitHub Comments

2reactions
ahmadabdolsahebcommented, Sep 30, 2020

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.

2reactions
ojeytonwilliamscommented, Sep 28, 2020

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.

Read more comments on GitHub >

github_iconTop 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 >

github_iconTop Related Medium Post

No results found

github_iconTop Related StackOverflow Question

No results found

github_iconTroubleshoot Live Code

Lightrun enables developers to add logs, metrics and snapshots to live code - no restarts or redeploys required.
Start Free

github_iconTop Related Reddit Thread

No results found

github_iconTop Related Hackernoon Post

No results found

github_iconTop Related Tweet

No results found

github_iconTop Related Dev.to Post

No results found

github_iconTop Related Hashnode Post

No results found