run_backend_tests is compiling typescript
See original GitHub issuerun_backend_tests.sh
is building all of Oppia’s typescript files before running the backend tests, which should not be necessary given that backend code is python-only. This significantly slows down testing time (factor of ~2 for each run).
To Reproduce
run bash scripts/run_backend_tests.sh
Observed behavior All of Oppia is being compiled in typescript before any backend tests begin.
Expected behavior Backend tests begin immediately.
Additional context The following commits seems to have introduced the extra steps:
- 0c9c01a8b0 by @ankita240796
- bce009cd56 by @vojtechjelinek
Issue Analytics
- State:
- Created 4 years ago
- Comments:22 (22 by maintainers)
Top Results From Across the Web
TypeScript Compiling with Visual Studio Code
It offers classes, modules, and interfaces to help you build robust components. Install the TypeScript compiler. Visual Studio Code includes TypeScript language ...
Read more >Documentation - tsc CLI Options - TypeScript
Flag Type Default
‑‑allowJs boolean false
‑‑allowUmdGlobalAccess boolean false
‑‑allowUnreachableCode boolean
Read more >danielstern/compiling-typescript: A Simple ... - GitHub
Contains HTML file which is served to the user - aggregates references to generated .js files. /src. Contains the non-compiled TypeScript code. This...
Read more >Compile TypeScript Project - TutorialsTeacher
As you know, TypeScript files can be compiled using the tsc <file name>.ts command. It will be tedious to compile multiple .ts files...
Read more >Compiling TypeScript into JavaScript - WebStorm - JetBrains
Because browsers and Node.js process only JavaScript, you have to compile your TypeScript code before running or debugging it.
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
I chatted with @ankita240796 about this. I think we shouldn’t do mocking (because that causes skew), but should instead fix the backend tests to not rely on typescript/webpack compilation, and make that a rule for backend tests in general. If any tests are running based on the compiled files, we should change them to run based on the source files instead.
Hmm that’s strange. I have submitted #7528 to revert the changes.