Giter Club home page Giter Club logo

Comments (4)

ricardoas avatar ricardoas commented on August 30, 2024

Isso implica parar de usar o "activator test" no repovoamento do BD no
Heroku... certo?

2016-05-28 16:36 GMT-03:00 nazareno [email protected]:

Seria ótimo usar nos testes de unidade um BD menor que fosse zerado e
repovoado a cada teste que queira usar o BD, e que não bagunçasse o BD
usado no activator run.


You are receiving this because you are subscribed to this thread.
Reply to this email directly, view it on GitHub
#9, or mute the
thread
https://github.com/notifications/unsubscribe/AAS-9SoUtwQM7ybXQ7yiIglDcd7ALwHRks5qGJk0gaJpZM4IpJNk
.

from diferentonas-server.

nazareno avatar nazareno commented on August 30, 2024

Correto.
Se pudermos ter um activator populateDB que lida com o BD produção, e um
activator test que usa um BD reduzido, pra mim seria o ideal. pelo que
estamos usando do BD, acho que eu nos manteria usando o postgres mesmo, e
não um inmemory.

On Tue, May 31, 2016 at 10:25 AM Ricardo Araújo [email protected]
wrote:

Isso implica parar de usar o "activator test" no repovoamento do BD no
Heroku... certo?

2016-05-28 16:36 GMT-03:00 nazareno [email protected]:

Seria ótimo usar nos testes de unidade um BD menor que fosse zerado e
repovoado a cada teste que queira usar o BD, e que não bagunçasse o BD
usado no activator run.


You are receiving this because you are subscribed to this thread.
Reply to this email directly, view it on GitHub
#9, or mute the
thread
<
https://github.com/notifications/unsubscribe/AAS-9SoUtwQM7ybXQ7yiIglDcd7ALwHRks5qGJk0gaJpZM4IpJNk

.


You are receiving this because you authored the thread.
Reply to this email directly, view it on GitHub
#9 (comment),
or mute the thread
https://github.com/notifications/unsubscribe/ABAUminKFs06vqbpjasKYWT8TvuJN9ohks5qHDbNgaJpZM4IpJNk
.

from diferentonas-server.

ricardoas avatar ricardoas commented on August 30, 2024

Acho que rola fazer isso sobrescrevendo a injeção de InitialData... assim que rolar uma folga penso nisso com carinho!

from diferentonas-server.

 avatar commented on August 30, 2024

Oi @nazareno, eu tenho uma solução boa para você.

Seria ótimo usar nos testes de unidade um BD menor que fosse zerado e repovoado a cada teste que queira usar o BD, e que não bagunçasse o BD usado no activator run.

existe o mysql-free, você pode enviar quantos dados quiser, que depois eles removem. é bom para testes. tem também o elephansql(que é uma versão postgres sql online com 100mb) também é bom para testes.

espero ajudar nessa thread.

from diferentonas-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.