Should I unit test my / src files or / create files?

When setting up unit tests (in my case, using Jasmine for JavaScript) should files with uninfected / in-carbon be checked src? Or should buildend-user files (miniature and charcoal) be tested?

In my grunt configuration:

jasmine: {
    src: ['src/file.js']
}

against.

jasmine: {
    src: ['build/file.min.js']
}

On the one hand, it’s nice to test files src, since it does not remove debuggers and is easier to check when necessary.

On the other hand, I can test the files srcas much as I want, but that’s not how the end users will work, as the files buildwill be cleaned and reduced.

+4
source share
1

unit test , . . , - ; , 100% , - , , - , uglify.

- , : , , ..

, :

enter image description here

( Google Test Automation)

, src , , , .

, - , , .

+6

Source: https://habr.com/ru/post/1598066/


All Articles