LISTSERV mailing list manager LISTSERV 16.5

Help for QSERV-L Archives


QSERV-L Archives

QSERV-L Archives


QSERV-L@LISTSERV.SLAC.STANFORD.EDU


View:

Message:

[

First

|

Previous

|

Next

|

Last

]

By Topic:

[

First

|

Previous

|

Next

|

Last

]

By Author:

[

First

|

Previous

|

Next

|

Last

]

Font:

Proportional Font

LISTSERV Archives

LISTSERV Archives

QSERV-L Home

QSERV-L Home

QSERV-L  August 2015

QSERV-L August 2015

Subject:

Re: unit test for wmgr

From:

"Salnikov, Andrei A." <[log in to unmask]>

Reply-To:

General discussion for qserv (LSST prototype baseline catalog)

Date:

Fri, 28 Aug 2015 18:29:25 +0000

Content-Type:

text/plain

Parts/Attachments:

Parts/Attachments

text/plain (38 lines)

Hi K-T,

the API use is not too broad but it involves SQL queries. One could 
build very basic mock which basically ignores all input data and 
always returns success but that is not to useful for testing actual 
behavior. Building useful mock is a lot of work and I hope that we
could use sqlite as a mock for mysql for this purpose. That still 
may require a lot of effort because of differences in SQL support.

Anyway, this all is beyond the point, trouble for Jacek is that he
is now replacing db API completely. Even if we had a mock for testing
current code against "old" db API it would still continue to work OK
until someone updates mock itself to mimic new db API.

Cheers,
Andy


Kian-Tat Lim wrote on 2015-08-28:
> Andy,
> 
>> I doubt that we can write unit test for every single line of code
>> and every possible behavior. Standard problem with that code is
>> that for correct behavior it needs database instance (and bunch
>> of other things because it's Flask stuff) so it's hard to do it
>> with standalone setup.
> 
> 	The API or API usage is too large to build a maintainable mock
> (that would be a lot less than a SQLite implementation)?
>
š 

########################################################################
Use REPLY-ALL to reply to list

To unsubscribe from the QSERV-L list, click the following link:
https://listserv.slac.stanford.edu/cgi-bin/wa?SUBED1=QSERV-L&A=1

Top of Message | Previous Page | Permalink

Advanced Options


Options

Log In

Log In

Get Password

Get Password


Search Archives

Search Archives


Subscribe or Unsubscribe

Subscribe or Unsubscribe


Archives

March 2018
February 2018
January 2018
December 2017
August 2017
December 2016
November 2016
October 2016
September 2016
August 2016
July 2016
June 2016
May 2016
April 2016
March 2016
February 2016
January 2016
December 2015
November 2015
October 2015
September 2015
August 2015
July 2015
June 2015
May 2015
April 2015
March 2015
February 2015
January 2015
December 2014
November 2014
October 2014
September 2014
August 2014
July 2014
June 2014
May 2014
April 2014
March 2014
February 2014
January 2014
December 2013
November 2013
October 2013
September 2013
August 2013
July 2013
June 2013
May 2013
April 2013
March 2013
February 2013
January 2013
December 2012

ATOM RSS1 RSS2



LISTSERV.SLAC.STANFORD.EDU

Secured by F-Secure Anti-Virus CataList Email List Search Powered by the LISTSERV Email List Manager

Privacy Notice, Security Notice and Terms of Use