Hi everyone, I want to ask a question here: why do we need qunit tests instead of using selenium to test everything?
In Django’s qunit tests, we write some tiny test pages and run the code to be tested in tests.html
. Then we run the corresponding .test.js
file to do the test. What we do in qunit are about utilizing html elements and see if we get expected results, which is exactly the same as what we do in selenium tests. Then why do we still need qunit? I want to learn about the philosophy behind this design, what kind of functions should be tested using selenium what what should be tested using qunit.