getnikola / nikola

A static website and blog generator
https://getnikola.com/
MIT License
2.6k stars 444 forks source link

Add an automated test for plugin/commands/auto (the development server). #3718

Closed aknrdureegaesr closed 7 months ago

aknrdureegaesr commented 10 months ago

Requested Feature: (short description)

In an experiment, I sabotaged the development server and ran the tests. To my dismay, no test failed. This feature request requests coming up with a test for the development server.

In detail, here is what I did:

Expectation: Some tests fail.

Actually seen: The test was happy.

I double-checked that removing that line in an actual Nikola deployment causes the development server to fail miserably; it does not serve the document root (404 HTTP Code).

Related Area: (eg. tasks, compilers, configuration, templates…)

This feature request is not suggesting to change any production code or functionality, but only add material to tests.

Do you want to contribute this yourself as a pull request? (don’t worry about it if you don’t want to/can’t — someone else can take care of it)

I have done stuff like that before. My suggestion / plan is:

Does this feature affect backwards compatibility? If yes, in what way?

No.

Rationale and full description: (why should it be added to Nikola?)

This is somewhat related to #3715. Maybe I'll provide a pull request for that one, too (still have not promised). I have a profound dislike regarding providing a pull request without a test.