Coder Social home page Coder Social logo

Comments (12)

bwmcin avatar bwmcin commented on July 28, 2024 1

Just for context, I was "following" the directions on the tutorial and found that the persistence didn't work. In debugging the problem, I discovered that the template for the intents was in test.ejs. I would suggest that since the tutorial "requires" this file, that in one sense, this isn't a "test" file, nor is it a "debugging" file. Did I miss the instructions somewhere that one needs to modify this file before using the persistence mechanism? I would believe you test scenario should process all intents that are to be experienced by the folks learning the system. Thank you.

from alexa-app-server.

dblock avatar dblock commented on July 28, 2024

What's this persistence tutorial? :)

from alexa-app-server.

tejashah88 avatar tejashah88 commented on July 28, 2024

I believe this is because #22 was not merged yet.

from alexa-app-server.

dblock avatar dblock commented on July 28, 2024

Aha. Could we finish #22 with some tests pls?

from alexa-app-server.

bwmcin avatar bwmcin commented on July 28, 2024

from alexa-app-server.

tejashah88 avatar tejashah88 commented on July 28, 2024

@dblock By tests, you mean for mocha or actually testing it, since I didn't necessarily find any mocha tests for this?

from alexa-app-server.

dblock avatar dblock commented on July 28, 2024

Yes. We're changing some code, we want tests that otherwise would break. New management new rules, no more untested code ;)

from alexa-app-server.

tejashah88 avatar tejashah88 commented on July 28, 2024

I understand that we need testing, but any specifics for how to do so? (ie. mocha testing or manually testing?)

from alexa-app-server.

dblock avatar dblock commented on July 28, 2024

Mocha of course.

from alexa-app-server.

tejashah88 avatar tejashah88 commented on July 28, 2024

After trying for a couple of days, there doesn't seem to be an easy solution to test this without some breaking changes to the debugger. IMO, if the alexa-app and alexa-app-server core code are tested well enough, there shouldn't need to be testing the debugger, at least with mocha. Currently, I'm re-factoring the test.ejs file, as it's pretty much a big mess to maintain right now. Until we have a way of testing the debugger otherwise, I'd say we leave it alone otherwise.

from alexa-app-server.

dblock avatar dblock commented on July 28, 2024

I only disagree "in principle", any code we ship that users can use should have automated tests because otherwise we break it every time we make a change or new contributors are scared of contributing.

from alexa-app-server.

dblock avatar dblock commented on July 28, 2024

I merged #22, we can pay our technical debts later.

from alexa-app-server.

Related Issues (20)

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo D3

    Bring data to life with SVG, Canvas and HTML. 📊📈🎉

Recommend Topics

  • javascript

    JavaScript (JS) is a lightweight interpreted programming language with first-class functions.

  • web

    Some thing interesting about web. New door for the world.

  • server

    A server is a program made to process requests and deliver data to clients.

  • Machine learning

    Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google ❤️ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.