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.

run_backend_tests is compiling typescript

See original GitHub issue

run_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:

  1. 0c9c01a8b0 by @ankita240796
  2. bce009cd56 by @vojtechjelinek

Issue Analytics

  • State:closed
  • Created 4 years ago
  • Comments:22 (22 by maintainers)

github_iconTop GitHub Comments

1reaction
seanlipcommented, Jun 8, 2019

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.

0reactions
ankita240796commented, Sep 1, 2019

Hmm that’s strange. I have submitted #7528 to revert the changes.

Read more comments on GitHub >

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

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